package cn.app.android.sichuanxiaoke.com.xiaokeapp.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import cn.app.android.sichuanxiaoke.com.xiaokeapp.R;

/**
 * Created by Administrator on 2017/9/3.
 */

public class HomeFragmentHeadingNewsAdapter extends BaseAdapter {
    Context context;

    public HomeFragmentHeadingNewsAdapter(Context context) {
        this.context = context;
    }

    @Override
    public int getCount() {
        return 4;
    }

    @Override
    public Object getItem(int position) {
        return position;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View view = LayoutInflater.from(context).inflate(R.layout.home_fragment_heading_news_item, parent, false);
        return view;
    }
}
